<extend name="Base/common"/>
<block name="style">
<style type="text/css">
    .head{
        width:100%;
        height:100%;
        padding-top: 13px;
    }
    .formtijiao{
        width:90%;
        margin-top: 2%;
        margin-bottom: 10%;

    }

    p{
        height: auto;
        margin: auto;
        font-size: 16px;
        line-height: 40px;
        text-align: left;

    }



    button{
        width: 30%;
        height: 40px;
        background: #EDEDED;
        border:1px solid #ccc;

        border-left: none;
        float: left;
    }
    span{
        width: 40%;
        height: 40px;
        background: #EDEDED;
        border:1px solid #ccc;
        border-right: none;
        line-height: 40px;
        text-align: center;
        float: left;

    }

   
</style>
</block>
<block name="body">
    <div class="head">
        <div style="width:90%;margin:auto;border-bottom:13px #f8f8ff solid">
                <p style="color:#898989">支付方式：<font style="color:#3e3a39">自动回款/不回款</font></p>
                <p style="color:#898989">花呗支付：<font style="color:#f8b62d">{$gather.up_set}%</font></p>
                <p style="color:#898989">花呗分期支付：<font style="color:#f8b62d">{$gather.up_set}%</font></p>
                <p style="color:#898989">条码支付：<font style="color:#f8b62d">{$gather.up_set}%</font></p>
        </div>


        <form class="formtijiao" method="post" action="">
            <p class="_path" style="color:#898989;margin-left:5%;">
                花呗支付回款费率:<input class="path6" style="width: 40%;height: 40px;line-height: 40px;background: #fff;border:0;border-bottom:1px solid #ccc;text-align:center;color:#f8b62d" type="text"    value="{$gather.path6}%">

            </p>
            <p class="_path" style="color:#898989;margin-left:5%;">
                花呗分期支付回款费率:<input class="path7" style="width: 40%;height: 40px;line-height: 40px;background: #fff;border:0;border-bottom:1px solid #ccc;text-align:center;color:#f8b62d" type="text"    value="{$gather.path7}%">

            </p>


        </form>
<p style="width:90%;margin-left:5%;text-indent: 2em;line-height:20px;font-size:13px;color:#f8b62d">提示：回款费率可直接修改，最高15%，最低不可低于平台费率。费率如需调整，请联系上级。</p>

             

    </div>



    
</block>



<block name="script">
<script>
$('.path6,.path7').change(function(){
    var path6=$('.path6').val()
    path6=parseFloat(path6)
    var path7=$('.path7').val()
    path7=parseFloat(path7)
    $.ajax({
        type:'post',
        data:{'path6':path6,'path7':path7},
        url:"{:U('rate2')}",
        success:function(m){
            if(m==1){
                confirm('修改成功！')

                location.reload()
            }else if(m==0){
                popup.alert('修改失败！')
            }else{
                popup.alert(m)
            }
        }
    })
})


var _this='';

$('._path').click(function(){
    _this=$(this).find('input');

    var oDivHtml = _this.val();
    oDivHtml=parseFloat(oDivHtml)
    if(isNaN(oDivHtml)){
        _this.val('')
    }else{
        _this.val(oDivHtml)
        
    }
})


</script>

</block>